package com.xiaotao.mapper;

import com.xiaotao.dto.GroupBuyDto;
import com.xiaotao.entity.GroupBuy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * GroupBuyMapper继承基类
 */
@Mapper
@Repository
public interface GroupBuyMapper extends MyBatisBaseDao<GroupBuy, Integer> {
    List<GroupBuy> findAll();

    List<GroupBuyDto> findByMerchantId(Integer merchantId);

    Integer batchDelete(@Param("groupBuyList") List<GroupBuyDto> groupBuyList);

    List<GroupBuyDto> findById(Integer id);
}